#ifndef QKEYBOARDWIDGET_H
#define QKEYBOARDWIDGET_H

#include "sharedlibglobal.h"

#include <QWidget>

class SHAREDLIB_EXPORT QKeyBoardWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QKeyBoardWidget(QWidget *parent = 0);
    
    void    set_focus_widget(QWidget* widget);

    void    send_key(int key);

protected:
    void    set_cap(bool cap);
    void    set_shift(bool shift);
protected:
    void    paintEvent(QPaintEvent *);
signals:
    
public slots:
protected:
    QWidget     *m_focus_widget;

    bool m_is_shift;
    bool m_is_cap;
};

#endif // QKEYBOARDWIDGET_H
